home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso / 0071 / _setup.1 / SAMPLES2.TXT < prev    next >
Text File  |  1997-02-12  |  3KB  |  74 lines

  1. ++++++++++++++++++++++++++++++++++++++++++++++
  2. +  DOS PLATFORM                             +
  3. +                         +    
  4. +  SOURCE CODE EXAMPLES TO CHANGE SOFTWARE   +
  5. +                                            +
  6. ++++++++++++++++++++++++++++++++++++++++++++++
  7.  
  8.  
  9. +-- DISCLAIMER PLEASE READ: ------------------------------------+
  10. +                                +
  11. +  The following source is provided "as is" without warranty    +
  12. +  of any kind, either expressed or implied, including but not    +
  13. +  limited to the implied warranties or merchantibility and    +
  14. +  fitness for a particular purpose. The entire risk as to the    +
  15. +  quality and performance of the program is with you.        +
  16. +                                +
  17. +  You have a royalty-free right to use, modify, and reproduce    +
  18. +  the Sample Source Code exmaples in any way you find useful,    +
  19. +  provided that you agree that StanBrite Software has no    +
  20. +  warranty, obligations or liability for any Sample Source    +
  21. +  Code examples.                        +
  22. +                                +
  23. +---------------------------------------------------------------+
  24.  
  25. /*
  26. *********************************************************
  27. *                                                       *
  28. * Registration Manager DEMO                             *
  29. *                                                       *
  30. * Copyright StanBrite SOFTWARE.                         *
  31. * All rights reserved.                                  *
  32. * 1994 - 1997                                           *
  33. *                                                       *
  34. *********************************************************
  35. */
  36. /*
  37. ******************************************************************
  38.  This is a demo program which checks the Keywords
  39.  
  40.  Command line:
  41.         DEMODOS.EXE <Keyword> [ALLOW]
  42.  
  43. ******************************************************************
  44. */
  45. #include "string.h"     /* For strcpy (), strcmp () */
  46. #include "stdio.h"      /* For printf () */
  47.  
  48. main (int argc, char *argv[])
  49. {
  50.   char    Keyword [40];
  51.   char    Allow [10];
  52.  
  53.   /* Get the KEYWORD */
  54.   strcpy (Keyword, argv [1]);
  55.   if (argc > 1)
  56.       strcpy (Allow, argv [2]);
  57.  
  58.   printf ("\n\n\n");
  59.   if (strcmp (Keyword, "DemoUser") == 0)
  60.   {
  61.     if (strcmp (Allow, "ALLOW") == 0)
  62.        printf ("THIS PROGRAM IS RUNNING SUCCESSFULLY IN DEMO MODE (WITHOUT REGISTRATION).");
  63.     else
  64.        printf ("THIS PROGRAM HAS BEEN REGISTERED AND IS RUNNING SUCCESSFULLY IN REAL MODE.");
  65.   }
  66.   else
  67.     printf ("This program needs validation. You must run teh REMINDER.EXE.");
  68.   printf ("\n\n\n");
  69.  
  70.   return;
  71. }
  72.  
  73. -------------------------------------------
  74. End of file.